<h1>Editing book</h1>

<% form_for(@book, :html=>{:multipart=>true}) do |f| %>
  <%= f.error_messages %>
  <%= f.text_field :title %>
  <%= label_tag :pdf_file %> <%= file_field_tag(:pdf_file)%>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @book %> |
<%= link_to 'Back', books_path %>
